<%-- $RCSFile: ChangePwd.aspx $
 Apache license v2 2011 by Christian Surieux
 $Source: ?/AddonNice/Secure2/ChangePwd.aspx $
 $log$
 Revision 6 2010/08/09 10:51:22  christian.surieux
   Added Log comment to all .aspx .ascx .master files
 --%>
<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="ChangePwd.aspx.cs" Inherits="AddonNice.Secure.ChangePwd" MasterPageFile="~/MasterPages/ADNSecure.Master" %>
<asp:Content  ID='Content0' runat='server' ContentPlaceHolderID='ContentTitle'>
    <asp:literal id="Literal1" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_PROCESS %>"  />
</asp:Content>
<asp:Content ID="Content2" runat='server' ContentPlaceHolderID='SecuredContent'>
    <asp:ChangePassword ID="ChangePassword1" runat="server" SkinID='ChangePwd' DisplayUserName="true"  >
    <SuccessTemplate>
        <div class='ChangePasswordTemplateMain' >
            <div class='ChangePasswordTemplateTitle' >
                <asp:literal id="Literal1" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_COMPLETE %>"  />
            </div>
            <div class='ChangePasswordTemplateRow' >
                <asp:literal id="Literal2" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_CHANGED %>"  />
            </div>
            <div class='ChangePasswordTemplateButtons' >
                <asp:imagebutton runat="server"  SkinID='Continue_en' CausesValidation="False" CommandName="Continue" alternatetext="<%$ Resources:ADNCRM,CONTINUE %>"
                    id="BtnContinue" />&nbsp;
                 <asp:ImageButton ID="BtnHome" SkinID="Finish_en" runat="server"  AlternateText="<%$ Resources:ADNCRM,LOGIN_RECOVER_HOME %>" CausesValidation="false" />
            </div>
            <div class='ChangePasswordTemplateRow' >
                <asp:HyperLink ID="EditProfileLinkSuccess" NavigateUrl="~/secure2/editprofile.aspx" runat="server"
                            Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_EDIT_PROFILE %>" />
            </div>
        </div>
    </SuccessTemplate>
    <ChangePasswordTemplate>
        <div class='ChangePasswordTemplateMain' >
            <div class='ChangePasswordTemplateTitle' >
               <asp:literal id="Literal3" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_ENTER_USERNAMEPWD %>"  />
            </div>
            <div class='ChangePasswordTemplateRow' >
                <div class='ChangePasswordTemplateLeftCell'>
                    <asp:Label AssociatedControlID="UserName" ID="UserNameLabel" runat="server" 
                    Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_USERNAME %>"  />
                 </div>
                <div class='ChangePasswordTemplateRightCell'>
                    <asp:TextBox ID="UserName" runat="server" Width='90%'/>
                    <asp:RequiredFieldValidator ControlToValidate="UserName" ErrorMessage="<%$ Resources:ADNCRM,LOGIN_USERNAME_REQ %>" ID="UserNameRequired" 
                        runat="server" ToolTip="<%$ Resources:ADNCRM,LOGIN_USERNAME_REQ %>" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class='ChangePasswordTemplateRow' >
                <div class='ChangePasswordTemplateLeftCell'>
                    <asp:Label AssociatedControlID="CurrentPassword" ID="CurrentPasswordLabel" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_PWD %>" />
                 </div>
                <div class='ChangePasswordTemplateRightCell'>
                    <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password" Width='90%'/>
                    <asp:RequiredFieldValidator ControlToValidate="CurrentPassword" 
                    ErrorMessage="<%$ Resources:ADNCRM,LOGIN_PWD_REQ %>" ID="CurrentPasswordRequired" runat="server" 
                    ToolTip="<%$ Resources:ADNCRM,LOGIN_PWD_REQ %>" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class='ChangePasswordTemplateRow' >
                <div class='ChangePasswordTemplateLeftCell'>
                    <asp:Label AssociatedControlID="NewPassword" ID="NewPasswordLabel" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_NEWPWD %>" />
                 </div>
                <div class='ChangePasswordTemplateRightCell'>
                    <asp:TextBox ID="NewPassword" runat="server" TextMode="Password" Width='90%'/>
                    <asp:RequiredFieldValidator ControlToValidate="NewPassword" ErrorMessage="<%$ Resources:ADNCRM,LOGIN_NEWPWD_REQ %>"
                      ID="NewPasswordRequired" runat="server" ToolTip="<%$ Resources:ADNCRM,LOGIN_NEWPWD_REQ %>"
                      ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class='ChangePasswordTemplateRow' >
                <div class='ChangePasswordTemplateLeftCell'>
                    <asp:Label AssociatedControlID="ConfirmNewPassword" ID="ConfirmNewPasswordLabel" runat="server" Text="<%$ Resources:ADNCRM,LOGIN_CONFIM_NEWPWD %>" />
                 </div>
                <div class='ChangePasswordTemplateRightCell'>
                    <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password" Width='90%'/>
                    <asp:RequiredFieldValidator ControlToValidate="ConfirmNewPassword" 
                      ErrorMessage="<%$ Resources:ADNCRM,LOGIN_CONFIRM_NEWPWD_REQ %>"
                      ID="ConfirmNewPasswordRequired" runat="server" ToolTip="<%$ Resources:ADNCRM,LOGIN_CONFIRM_NEWPWD_REQ %>"
                      ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class='ChangePasswordTemplateRow' >
                    <asp:CompareValidator ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword"
                        Display="Dynamic" ErrorMessage="<%$ Resources:ADNCRM,LOGIN_CONFIRM_NEWPWD_MATCH %>"
                        ID="NewPasswordCompare" runat="server" ValidationGroup="ChangePassword1" />
            </div>
            <div class='ChangePasswordTemplateRow Error' >
                    <asp:Literal EnableViewState="False" ID="FailureText" runat="server" />
            </div>
            <div class='ChangePasswordTemplateButtons' >
                    <asp:imagebutton runat="server"  SkinID='Validate_en' commandname="ChangePassword" alternatetext="<%$ Resources:ADNCRM,LOGIN_CHANGE %>"
                        id="BtnChangePassword" ValidationGroup="ChangePassword1" />&nbsp;
                    <asp:imagebutton runat="server"  SkinID='Cancel_en' commandname="Cancel" alternatetext="<%$ Resources:ADNCRM,CANCEL %>"
                        id="CancelBtn" CausesValidation='false' />
            </div>
            <div class='ChangePasswordTemplateRow' >
                    <asp:HyperLink ID="EditProfileLink" NavigateUrl="~/Secure2/EditProfile.aspx" runat="server" 
                        Text="<%$ Resources:ADNCRM,LOGIN_CHANGE_EDIT_PROFILE %>" />
            </div>
        </div>
    </ChangePasswordTemplate>
    </asp:ChangePassword>
</asp:Content>
